import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// 全局注册
import { globalRegister } from "@/global"

// pinia
import { createPinia } from 'pinia'

// 路由
import router from "./router"

// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import './assets/css/element.scss'

// 权限
import "./permission"

// Pinia
const pinia = createPinia();


const app = createApp(App)

app.use(globalRegister)

app.use(ElementPlus)

app.use(router)

app.use(pinia)

app.mount('#app')
